<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      async function test() {
        await setTimeout(() => {
          console.log('a')
        }, 2000)
        await setTimeout(() => {
          console.log('b')
        }, 1000)
      }

      test()
    </script>
  </body>
</html>
